@import "@library/app/automatic/theme.scss";

.mask {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 9998;
}



.loader {
  position: fixed;
  top: 50%;
  left: 50%;
  display: flex;
  width: 200px;
  margin-left: -100px;
  height: 50px;
  margin-top: -75px; // 需要减去navbar header的高度
  box-shadow: 0px 12px 48px 16px rgba(0, 0, 0, 0.03), 0px 9px 28px 0px rgba(0, 0, 0, 0.05), 0px 6px 16px -8px rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  z-index: 9999;
  align-items: center;
  background: #FFF;
  overflow: hidden;
}

.text {
  margin-bottom: 0;
  margin-left: 65px;
}

$baserange: 12px;
@-webkit-keyframes ball-triangle-path-1 {
	33% {
		-webkit-transform: translate($baserange, -$baserange * 2);
		transform: translate($baserange, -$baserange * 2);
	}

	66% {
		-webkit-transform: translate($baserange * 2, 0px);
		transform: translate($baserange * 2, 0px);
	}

	100% {
		-webkit-transform: translate(0px, 0px);
		transform: translate(0px, 0px);
	}
}

@keyframes ball-triangle-path-1 {
	33% {
		-webkit-transform: translate($baserange, -$baserange * 2);
		transform: translate($baserange, -$baserange * 2);
	}

	66% {
		-webkit-transform: translate($baserange * 2, 0px);
		transform: translate($baserange * 2, 0px);
	}

	100% {
		-webkit-transform: translate(0px, 0px);
		transform: translate(0px, 0px);
	}
}

@-webkit-keyframes ball-triangle-path-2 {
	33% {
		-webkit-transform: translate($baserange, $baserange * 2);
		transform: translate($baserange, $baserange * 2);
	}

	66% {
		-webkit-transform: translate(-$baserange, $baserange * 2);
		transform: translate(-$baserange, $baserange * 2);
	}

	100% {
		-webkit-transform: translate(0px, 0px);
		transform: translate(0px, 0px);
	}
}

@keyframes ball-triangle-path-2 {
	33% {
		-webkit-transform: translate($baserange, $baserange * 2);
		transform: translate($baserange, $baserange * 2);
	}

	66% {
		-webkit-transform: translate(-$baserange, $baserange * 2);
		transform: translate(-$baserange, $baserange * 2);
	}

	100% {
		-webkit-transform: translate(0px, 0px);
		transform: translate(0px, 0px);
	}
}

@-webkit-keyframes ball-triangle-path-3 {
	33% {
		-webkit-transform: translate(-$baserange * 2, 0px);
		transform: translate(-$baserange * 2, 0px);
	}

	66% {
		-webkit-transform: translate(-$baserange, -$baserange * 2);
		transform: translate(-$baserange, -$baserange * 2);
	}

	100% {
		-webkit-transform: translate(0px, 0px);
		transform: translate(0px, 0px);
	}
}

@keyframes ball-triangle-path-3 {
	33% {
		-webkit-transform: translate(-$baserange * 2, 0px);
		transform: translate(-$baserange * 2, 0px);
	}

	66% {
		-webkit-transform: translate(-$baserange, -$baserange * 2);
		transform: translate(-$baserange, -$baserange * 2);
	}

	100% {
		-webkit-transform: translate(0px, 0px);
		transform: translate(0px, 0px);
	}
}

.ball-triangle-path {
	position: relative;
	// -webkit-transform: translate(-$baserange, -$baserange);
	// -ms-transform: translate(-$baserange, -$baserange);
	transform: translate(15px, -17px);
}

.ball-triangle-path>div:nth-child(1) {
	-webkit-animation-name: ball-triangle-path-1;
	animation-name: ball-triangle-path-1;
	-webkit-animation-delay: 0;
	animation-delay: 0;
	-webkit-animation-duration: 2s;
	animation-duration: 2s;
	-webkit-animation-timing-function: ease-in-out;
	animation-timing-function: ease-in-out;
	-webkit-animation-iteration-count: infinite;
	animation-iteration-count: infinite;
}

.ball-triangle-path>div:nth-child(2) {
	-webkit-animation-name: ball-triangle-path-2;
	animation-name: ball-triangle-path-2;
	-webkit-animation-delay: 0;
	animation-delay: 0;
	-webkit-animation-duration: 2s;
	animation-duration: 2s;
	-webkit-animation-timing-function: ease-in-out;
	animation-timing-function: ease-in-out;
	-webkit-animation-iteration-count: infinite;
	animation-iteration-count: infinite;
}

.ball-triangle-path>div:nth-child(3) {
	-webkit-animation-name: ball-triangle-path-3;
	animation-name: ball-triangle-path-3;
	-webkit-animation-delay: 0;
	animation-delay: 0;
	-webkit-animation-duration: 2s;
	animation-duration: 2s;
	-webkit-animation-timing-function: ease-in-out;
	animation-timing-function: ease-in-out;
	-webkit-animation-iteration-count: infinite;
	animation-iteration-count: infinite;
}

.ball-triangle-path>div {
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 100%;
  border: 1px solid $primary-color;
  background: $primary-color;
}

.ball-triangle-path>div:nth-of-type(1) {
	top: $baserange * 2;
}

.ball-triangle-path>div:nth-of-type(2) {
	left: $baserange;
}

.ball-triangle-path>div:nth-of-type(3) {
	top: $baserange * 2;
	left: $baserange * 2;
}